import request from '@/utils/request'

export function addressLogin(data) {
  return request({
    url: '/user/addressLogin',
    method: 'post',
    data,
  })
}

export function addressRegister(data) {
  return request({
    url: '/user/addressRegister',
    method: 'post',
    data,
  })
}

export function userIndex(data) {
  return request({
    url: '/user/index',
    method: 'get',
    params: data,
  })
}

export function getLog(data) {
  return request({
    url: '/user/getLog',
    method: 'get',
    params: data,
  })
}

export function withdraw(data) {
  return request({
    url: '/user/withdraw',
    method: 'post',
    data,
  })
}
